-- GENERATED SPELL FOR [Legion Destroyer] --


function spell0_20403(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(11428,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20403', 2295, 1)
end

function spell1_20403(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(13737,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20403', 5293, 1)
end

function Sorts_20403(pUnit, Event)
local choix_sorts_20403 = math.random(0, 1)
if choix_sorts_20403 == 0 then
pUnit:RegisterEvent('spell0_20403', 1, 1)
end
if choix_sorts_20403 == 1 then
pUnit:RegisterEvent('spell1_20403', 1, 1)
end
end

function mob20403_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20403', math.random(1500, 3000), 1)
end

function mob20403_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20403_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20403_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20403, 1, 'mob20403_Action')
RegisterUnitEvent(20403, 2, 'mob20403_Leave')
RegisterUnitEvent(20403, 3, 'mob20403_Kill')
RegisterUnitEvent(20403, 4, 'mob20403_Die')
